package com.tao.interface_.three;

public class Interface03 {
    public static void main(String[] args) {
        PeopleA peopleA = new PeopleA();
        show(peopleA);
        PeopleB peopleB = new PeopleB();
        show(peopleB);
        PeopleC peopleC = new PeopleC();
        show(peopleC);
    }
    public static void show(DBInterface db){
        db.connection();
        db.close();
    }
}
